<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<jsp:include page="/platform/include/page_edit_head.jsp">
		<jsp:param name="title" value="编辑" />
	</jsp:include>
</head>
<body style="width:750px; overflow-x:hidden;" path="${path}">
<!--主区域 -->
<div class="main-container" id="mainContainer">
	<form  class="form-horizontal" role="_editForm form" action="ajax_edit" data-validate="true"  id="editForm" method="post">
		<c:if test="${item.id > 0 }">
			<input id="" name="id" type="hidden" value="${item.id }"/>
			<input id="" name="createdate" type="hidden" value="${item.createdate }"/>
		</c:if>
		<div class="main-contentWrap cm-f14">
			<table class="table">
				<tbody>
				<tr>
					<td class="col-xs-2 table-item"><label class="cm-required">*</label>业务ID:</td>
					<td class="col-xs-8"><input type="text"
												class="table-input cm-w240 {required:true}" name="code"
												id="code" value="${item.code}" /></td>
				</tr>
				<tr>
					<td class="col-xs-2 table-item"><label class="cm-required">*</label>账号:
					</td>
					<td class="col-xs-8">
						<c:choose>
							<c:when test="${item.id > 0 }">
								${item.account}
							</c:when>
							<c:otherwise>
								<input type="text"
									   class="table-input cm-w240 {required:true}" name="account"
									   id="account" value="${item.account}" />
								<label class="cm-lh31 cm-f14 cm-f-normal">2-30个字符</label>
							</c:otherwise>
						</c:choose></td>
				</tr>
				<c:if test="${null == item }">
					<tr>
						<td class="col-xs-2 table-item"><label class="cm-required">*</label>密码:
						</td>
						<td class="col-xs-8"><input type="password"
													class="table-input cm-w240 {required:true,password:'#account'}"
													name="password" id="password" value="" /> <!-- <label class="cm-lh31 cm-f14 cm-f-normal">2-30个字符</label> -->
						</td>
					</tr>
				</c:if>
				<tr>
					<td class="col-xs-2 table-item"><label class="cm-required">*</label>姓名:
					</td>
					<td class="col-xs-8"><input type="text"
												class="table-input cm-w240 {required:true}" name="cname" id=""
												value="${item.cname }" /></td>
				</tr>
				<tr>
					<td class="col-xs-2 table-item">
						<label class="cm-required">*</label>角色:
					</td>
					<td class="col-xs-8">
						<select name="roleids" role="_chosen" data-placeholder="选择角色..." class="{required:true} cm-w240" tabindex="-1" multiple data-defaultValue="${roleids}">
							<c:forEach var="r" items="${roles}">
								<option value="${r.id}">${r.cname}</option>
							</c:forEach>
						</select>
					</td>
				</tr>
				<tr>
					<td class="col-xs-2 table-item"><label class="cm-required">*</label>状态:
					</td>
					<td class="col-xs-8"><select name="status"
												 class="table-select cm-w240 {required:true}"
												 role="_chosen"
												 data-defaultValue="${(null==item.status)?'':item.status}">
						<option value="">请选择状态</option>
						<c:if test="${commArray.arr_Isforbid!= null}">
							<c:forEach var="arrItem" items="${commArray.arr_Isforbid }"
									   varStatus="i" begin="1">
								<option value="${i.index }">${arrItem }</option>
							</c:forEach>
						</c:if>
					</select></td>
				</tr>
				<tr>
					<td class="col-xs-2 table-item">创建时间:</td>
					<td class="col-xs-8">
						<label class="cm-lh31 cm-f14 cm-f-normal cm-mg0">${item.createdate }</label>
					</td>
				</tr>
				<tr>
					<td class="col-xs-2 table-item">修改时间:</td>
					<td class="col-xs-8">
						<label class="cm-lh31 cm-f14 cm-f-normal cm-mg0">${item.lastdate }</label>
					</td>
				</tr>
				<tr>
					<td class="cm-tac" colspan="2" >
						<!-- <a href="javascript:void(0);" class="cm-btn-default" >确定</a> -->
						<input type="submit" class="cm-btn-default cm-border0" value="确定">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="javascript:window.Util.showBox.closeBox();" class="cm-btn-default" >取消</a>
					</td>
				</tr>
				</tbody>
			</table>
		</div>
	</form>
</div>
<footer></footer>
<jsp:include page="/platform/include/page_edit_footer.jsp"></jsp:include>
</body>
</html>